<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <p k-text="counter" @click="test('132465')"></p>
    <p k-html="des"></p>
    <p>{{counter}}</p>
    <div>
      <input type="text" k-model="userName">
    </div>
    <div>
      {{userName}}
    </div>
  </div>
</body>
<script src="./compiles.js"></script>
<script src="./kvue.js"></script>
<script>

  const app = new Kvue({
    el: '#app',
    data: {
      counter: 1,
      des: '<span style="color:red">鸡煲</span>',
      userName: 0
    },
    methods: {
      test (e) {
        console.log('test test', e)
      }
    },
    created () {
      console.warn('created')
      setInterval(()=> {
        this.counter++
      }, 1000)
    }
  })
  // setInterval(()=> {
  //   app.userName++
  // }, 1000)
</script>
</html>

<!-- mvvm -->